package cn.mw.cmdb.service;

import cn.mw.cmdb.entity.modelRelation.AddAndUpdateModelRelationParam;
import cn.mw.cmdb.entity.modelRelation.ModelRelationView;
import cn.mw.cmdb.entity.modelRelation.RelationGroupDTO;

import java.util.List;

public interface ModelRelationService {

    ModelRelationView getModelRelation(String modelId) throws Exception;

    RelationGroupDTO creatModelRelationsGroup(RelationGroupDTO param);

    RelationGroupDTO editModelRelationsGroup(RelationGroupDTO param) throws Exception;

    Boolean deleteModelRelationsGroup(String groupId) throws Exception;

    RelationGroupDTO getRelationGroupInfoById(String groupId);

    List<RelationGroupDTO> getRelationGroupInfoByModelId(String modelId);

    Boolean creatModelRelation(AddAndUpdateModelRelationParam param) throws Exception;

    Boolean editModelRelation(AddAndUpdateModelRelationParam param) throws Exception;

    Boolean deleteModelRelation(AddAndUpdateModelRelationParam param) throws Exception;

    AddAndUpdateModelRelationParam getModelRelationDetail(AddAndUpdateModelRelationParam param) throws Exception;
}
